www.gusucode.com > VC++ 机器人语音控制系统 > VC++ 机器人语音控制系统/gusucode/ROBOT/SetupDlg.cpp

    //Download by http://www.NewXing.com
// SetupDlg.cpp : implementation file
//

#include "stdafx.h"
#include "robot.h"
#include "SetupDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetupDlg dialog


CSetupDlg::CSetupDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSetupDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetupDlg)
	m_nStopBits = -1;
	m_nParity = -1;
	m_sPort = _T("");
	m_sBaud =_T("");
	m_sDataBits =_T("");
	//}}AFX_DATA_INIT
}


void CSetupDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetupDlg)
	DDX_CBIndex(pDX, IDC_STOPBITS, m_nStopBits);
	DDX_CBIndex(pDX, IDC_PARITY, m_nParity);
	DDX_CBString(pDX, IDC_PORT, m_sPort);
	DDX_CBString(pDX, IDC_BAUD, m_sBaud);
	DDX_CBString(pDX, IDC_DATABITS, m_sDataBits);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetupDlg, CDialog)
	//{{AFX_MSG_MAP(CSetupDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetupDlg message handlers

BOOL CSetupDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}